/*
 * Copyright (c) 2008-2011, Petr Panteleyev
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 *
 *    1. Redistributions of source code must retain the above copyright notice,
 *       this list of conditions and the following disclaimer.
 *    2. Redistributions in binary form must reproduce the above copyright notice,
 *       this list of conditions and the following disclaimer in the documentation
 *       and/or other materials provided with the distribution.
 *    3. The name of the author may not be used to endorse or promote products
 *       derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

package org.panteleyev.blogclient;

import javax.swing.ImageIcon;

/**
 *
 * @author Petr Panteleyev
 */
public enum Icon {
    FRIEND_ICON("friend.gif"),
    FRIENDOF_ICON("friendof.gif"),
    MUTUAL_FRIEND_ICON("mutual.gif"),
    COMMUNITY_ICON("community.gif"),
    SUSPENDED_ICON("suspended.gif"),
    DELETED_ICON("deleted.gif"),
    PURGED_ICON("purged.gif"),
    FRIENDS_WINDOW_ICON("friends.png", "friends32.png"),
    ADD_FRIEND("add_friend.png"),
    REMOVE_FRIEND("remove_friend.png"),
    BAN_FRIEND("ban.png"),
    ABOUT("about.png"),
    DOWN_MENU("down.gif"),
    NEW_POST("new_post.png"),
    LOCK("lock.png"),
    LOCK_NICE("lock.png"),
    PRIVATE("private.png"),
    HISTORY("history.png", "history32.png"),
    EMPTY("noicon.gif"),
    OPEN("open.png"),
    SYNDICATED("syn.png"),
    FONT_COLOR("fontcolor.png"),
    FRIEND_HEAD("friend_head.gif"),
    EARTH("earth.png", "earth32.png"),
    CUT("cut.png", "cut32.png"),
    COPY("copy.png", "copy32.png"),
    PASTE("paste.png", "paste32.png"),
    GALLERIES("galleries.png", "galleries32.png"),
    GALLERY("gallery.png"),
    OUTBOX("outbox.png", "outbox32.png"),
    LICENSE("info.png"),
    UNDO("undo.png", "undo32.png"),
    REDO("redo.png", "redo32.png"),
    BOLD("bold.png"),
    ITALIC("italic.png"),
    UNDERLINE("underscore.png"),
    STRIKE("strike.png"),
    OPTIONS("options.png"),
    CONSOLE("console.png", "console32.png"),
    RELOAD("reload.png", "reload32.png"),
    EDITDOC("editdoc.png", "editdoc32.png"),
    DELETE("delete.png", "delete32.png"),
    FORWARD("forward.png"),
    DRAFT("draft.png", "draft32.png"),
    MUSIC("music.png"),
    RICH_REFERENCE("link_add.png"),
    BIG_LOGO("petrus100.png"),
    SOURCEFORGE("sf.png"),
    FLICKR("flickr.png", "flickr32.png"),
    OPENID("openid.png"),
    NEWS_INFO("newsinfo.png"),
    EDIT("editdoc.png", "editdoc32.png"),
    APPROVE("approve.png", "approve32.png"),
    HOLD("hold.png", "hold32.png"),
    CANCEL("cancel.png", "cancel32.png"),
    COMMENT_REPLY("user_comment.png", "user_comment32.png"),
    COMMENT_EDIT("comment_edit.png", "comment_edit32.png"),
    COMMENT_DELETE("comment_delete.png", "comment_delete32.png"),
    COMMENTS("comments.png", "comments32.png"),
    PAGES("pages.png", "pages32.png"),
    RIGHT_ARROW("rightarrow.png", "rightarrow32.png"),
    LEFT_ARROW("leftarrow.png", "leftarrow32.png"),
    UPLOAD("upload.png", "upload32.png"),
    FACEBOOK("facebook.gif"),
    TWITTER("twitter.png"),
    IMAGE_LINK("image_link.png"),
    LIVEJOURNAL("livejournal.gif"),
    WORDPRESS("wordpress.png"),
    GOOGLE("google_logo.png"),
    PICASA("picasa.png", "picasa32.png"),
    QUIT("quit.png");

    private static final String RES_PATH = "/org/panteleyev/blogclient/resources/";

    private ImageIcon icon;
    private ImageIcon iconBig;

    private Icon(String fileName) {
        icon = new ImageIcon(getClass().getResource(RES_PATH + fileName));
        iconBig = new ImageIcon(getClass().getResource(RES_PATH + fileName));
    }

    private Icon(String fileName, String fileNameBig) {
        icon = new ImageIcon(getClass().getResource(RES_PATH + fileName));
        iconBig = new ImageIcon(getClass().getResource(RES_PATH + fileNameBig));
    }

    public ImageIcon i() {
        return this.icon;
    }

    public ImageIcon I() {
        return this.iconBig;
    }
}
